package com.backend.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 评论表
 * @TableName comment
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 评论对象
     */
    @TableField(value = "ownerID")
    private Long ownerID;

    /**
     * me
     */
    @TableField(value = "fromUserID")
    private Integer fromUserID;

    /**
     * me
     */
    @TableField(value = "fromUserName")
    private String fromUserName;

    /**
     * me
     */
    @TableField(value = "fromUserAvatar")
    private String fromUserAvatar;

    /**
     * 点赞人数
     */
    @TableField(value = "likeNum")
    private Integer likeNum;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 
     */
    @TableField(value = "isDelete")
    @TableLogic
    private Byte isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}